package com.photoeditor.demo.util;

import android.net.Uri;

import java.util.Locale;

/**
 *	用于检测当前的Uri是不是File URI
 */
public class UriUtil {
	
	private static final String START_WIDTH_FILE = "file://";
	
	public static boolean isFileUri(Uri u){
		String str = u.toString();
		if(str.toLowerCase(Locale.getDefault()).startsWith(START_WIDTH_FILE)){
			return true;
		} else{
			return false;
		}
	}
	
}
